package com.b2b.model;

import com.b2b.model.entity.MasterOrder;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Repository;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class MasterOrderDto {
    private String buyerName;
    private String sellerName;
    private Character orderType;
    private Character transportMode;
    private List<MasterOrderGoodsDto> stockList;
    private Integer masterOrderId;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date masterOrderTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date transactionValidity;
    private String remarks;
    private Integer exchangeAgreement;
    private Integer exchangeRate;
    private Integer deliveryAgreement;
    private Character buyerState;
    private Character sellerState;
    private Character orderState;
    private String contractFilePath;
    private Integer buyerId;
    private Integer sellerId;
    private Double goodsTotalPrice;
    private Double freight;
}
